home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / comm / misc / LCR.lha / lcr / Install LCR < prev    next >
Text File  |  2000-07-06  |  4KB  |  152 lines

  1. ;
  2. ; Installer script for Tankbuch installation
  3. ; $VER: Install_LCR by Ralf Scholl
  4. ;
  5. ;********* Setup all the messages *********************************************
  6. ;
  7.  
  8. (procedure SetupMessages
  9.  (
  10.   (set DefDest        "RAM:")
  11.   (set FontSrc        "Fonts/")
  12.   (set FontDest       "Fonts:")
  13.   (set DokSrc         "Dok/")
  14.   (set DokDest        "RAM:")
  15.   (set DefCatalogDir  (tackon "LOCALE:Catalogs" @language))
  16.  
  17.   (if (= @language "english")
  18.    (
  19.      (set #InstallWhat         "What do you want to install ? \n The font 'XEN' will be installed in any case.")
  20.      (set #InstallChoice1      "Main program")
  21.      (set #InstallChoice2      "Documentation")
  22.      (set #SelectMainDir       "Select the directory where to copy the Main program.")
  23.      (set #CopyingMainProg     "Copying the Main program...")
  24.      (set #CopyFont            "Copying the Font 'XEN' to Fonts:")
  25.      (set #SelectDocDir        "Select the directory where to copy GUIDE-documentations.")
  26.      (set #CopyingDoc          "Copying documentation...")
  27.    )
  28.   )
  29.   (if (= @language "deutsch")
  30.    (
  31.      (set #InstallWhat         "Was möchten Sie installieren ? \n Der Font 'XEN' wird in jedem Falle installiert.")
  32.      (set #InstallChoice1      "Hauptprogramm")
  33.      (set #InstallChoice2      "Dokumentation")
  34.      (set #SelectMainDir       "Wählen Sie das Verzeichnis, in das Sie das Hauptprogramm kopieren möchten.")
  35.      (set #CopyingMainProg     "Kopiere das Hauptprogramm...")
  36.      (set #CopyFont            "Kopiere den Font 'XEN' nach Fonts:")
  37.      (set #SelectDocDir        "Wählen Sie das Verzeichnis, in das Sie die GUIDE-Dokumentationen kopieren möchten.")
  38.      (set #CopyingDoc          "Kopiere die Dokumentation...")
  39.    )
  40.   )
  41.  )
  42. )
  43. ;********* Installiere das Hauptprogramm ************************************
  44. ;
  45. (procedure InstallMainProg
  46.  (
  47.   (Message "\n\nEs wird nun das Hauptprogramm,\ndas dazugehörige Icon\nund eine Maskendatei kopiert.")
  48.   (set MainDir
  49.     (askdir
  50.      (prompt #SelectMainDir)
  51.      (help @askdir-help)
  52.      (default DefDest)
  53.     )
  54.   )
  55.  
  56.   (copyfiles
  57.     (prompt #CopyingMainprog)
  58.     (help @copyfiles-help)
  59.     (source "LCR")
  60.     (dest MainDir)
  61.     (infos)
  62.   )
  63.   (copyfiles
  64.     (prompt #CopyingMainprog)
  65.     (help @copyfiles-help)
  66.     (source "PICX.obj")
  67.     (dest MainDir)
  68.     (infos)
  69.   )
  70. ; *** Kopiere ohne Fragen die wichtigen Daten ***
  71.  
  72.   (Message "\n\nEs wird nun der Font 'XEN' kopiert.\nWenn Sie die Installation hier abbrechen,\nist das Programm LCR bereits funktionstüchtig,\njedoch werden die Texte mit dem eingestellten Fenster-Font dargestellt,\nwas nicht immer die optimale Einstellung darstellt.\n\nEs wird empfohlen den Font zu installieren!")
  73.   (copyfiles
  74.     (prompt #Font)
  75.     (help @copyfiles-help)
  76.     (source FontSrc)
  77.     (all)
  78.     (dest FontDest)
  79.   )
  80.  )
  81. )
  82.     
  83. ;********* Installiere die Anleitung ****************************************
  84. ;
  85. (procedure InstallDoc
  86.  (
  87.   (Message "\n\nEs werden nun die Anleitungen im PowerGuide-Format kopiert.\nZu den Dokumentationen wird noch ein Verzeichnis mit Grafiken kopiert, die für die PowerGuide Dokumentation 'LiesMich' benötigt werden, um den Text mit einer Bebilderung auszustatten.")
  88.   (set DocDir
  89.     (askdir
  90.       (prompt #SelectDocDir)
  91.       (help @askdir-help)
  92.       (default DokDest)
  93.     )
  94.   )
  95.   (copyfiles
  96.     (prompt #CopyingDoc)
  97.     (help @copyfiles-help)
  98.     (source DokSrc)
  99.     (all)
  100.     (dest DocDir)
  101.     (infos)
  102.   )
  103.  )
  104. )
  105. ;********* Start of the installation program **********************************
  106. ;
  107. (complete 0)
  108. (user 2)
  109. (set #InstallWhat "")
  110. ;
  111. ;********* Setup messages and check language
  112. ;
  113. (SetupMessages)
  114. (if (= #InstallWhat "")
  115.   (
  116.     (set langnum
  117.       (askchoice
  118.     (prompt "Which language do you speak ?")
  119.     (help @askoptions-help)
  120.     (choices "english" "deutsch")
  121.       )
  122.     )
  123.     (set @language (select langnum "english" "deutsch"))
  124.     (SetupMessages)
  125.   )
  126. )
  127. ;
  128. ;********* Displays the welcome message
  129. ;
  130. (user 1)
  131. (welcome)
  132. ;
  133. ;********* Ask which part is to be installed
  134. ;
  135. (set ToInstall
  136.   (askoptions
  137.     (prompt #InstallWhat)
  138.     (help @askoptions-help)
  139.     (choices #InstallChoice1 #InstallChoice2)
  140.   )
  141. )
  142. ;
  143. ;******** Install each part
  144. ;
  145. (complete 16) (if (BITAND ToInstall  1) (InstallMainProg))
  146. (complete 78) (if (BITAND ToInstall  2) (InstallDoc))
  147. ;
  148. ;******** End
  149. ;
  150. (complete 100)
  151. (exit (quiet))
  152.